<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">	
        <label class="control-label col-xs-12 col-sm-2">标签:</label>
        <div class="col-xs-12 col-sm-8">
            <div style="margin-top:15px;">
				<span style="margin-right:10px;" onclick="insertHtmldl()" class="btn btn-success btn-add" >【段落】</span>
				<span style="margin-right:10px;" onclick="insertHtmljz()" class="btn btn-success btn-add" >【句子】</span>
				<span style="margin-right:10px;" onclick="insertHtmltp()" class="btn btn-success btn-add" >【图片】</span>
				<span style="margin-right:10px;" onclick="insertHtmlbt()" class="btn btn-success btn-add" >【标题】</span>
			</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mycontent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-mycontent" data-rule="required" style="width:635px;height:100%;" name="row[mycontent]">{$row.mycontent}</textarea>
        </div>
    </div>
<!--     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addtime" data-rule="required" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[addtime]" type="text" value="{$row.addtime|datetime}">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
	<script type="text/javascript" src="__ROOT__/addons/umeditor/assets/third-party/jquery.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="__ROOT__/addons/umeditor/assets/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__ROOT__/addons/umeditor/assets/umeditor.min.js"></script>
    <script type="text/javascript" src="__ROOT__/addons/umeditor/assets/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript">
		//实例化编辑器
		var um = UM.getEditor('c-mycontent');
		
		function insertHtmldl() {
		   var value = "【duanluo】";
			um.execCommand('insertHtml', value);
		}
		function insertHtmljz() {
		   var value = "【juzi】";
			um.execCommand('insertHtml', value);
		}
		function insertHtmltp() {
		   var value = "【tupian】";
			um.execCommand('insertHtml', value);
		}
		function insertHtmlbt() {
		   var value = "【biaoti】";
			um.execCommand('insertHtml', value);
		}
	</script>